package com.cashmanager.client.view;

import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.types.Side;
import com.smartgwt.client.widgets.Img;
import com.smartgwt.client.widgets.Label;
import com.smartgwt.client.widgets.Window;
import com.smartgwt.client.widgets.layout.HLayout;
import com.smartgwt.client.widgets.tab.Tab;
import com.smartgwt.client.widgets.tab.TabSet;

public class ReportWindow extends Window {
	public ReportWindow() {
		setTitle("统计图表");
		setWidth("60%");
		setHeight("80%");
		setBorder("1px dark blue");
		setCanDragResize(false);

		setShowMinimizeButton(false);
		setIsModal(true);
		setShowModalMask(true);
		centerInPage();
		

		final TabSet topTabSet = new TabSet();
		topTabSet.setTabBarPosition(Side.TOP);
		topTabSet.setWidth("100%");
		topTabSet.setHeight("90%");
		topTabSet.setAlign(Alignment.CENTER);
		
		Img totalImg = new Img("total.JPG",400, 300);
		Tab total = new Tab("总流通量图表");
		total.setPane(totalImg);
		Tab fal = new Tab("假币统计图表");
		Img falseImg = new Img("false.JPG",400,300);
		fal.setPane(falseImg);
		Tab warn = new Tab("可疑币统计图表");
		Img warnImg = new Img("warn.JPG",400,300);
		warn.setPane(warnImg);
		Tab value = new Tab("流通面值统计图表");
		Img valueImg = new Img("value.JPG",400,300);
		value.setPane(valueImg);
		Tab version = new Tab("流通版别统计图表");
		Img versionImg = new Img("version.JPG",400,300);
		version.setPane(versionImg);
		topTabSet.addTab(total);
		topTabSet.addTab(fal);

		topTabSet.addTab(warn);
		topTabSet.addTab(value);
		topTabSet.addTab(version);
		
		HLayout download = new HLayout();
		Label h1 = new Label("&nbsp&nbsp<u>下载报表成PDF文件</u>&nbsp&nbsp");
		Label h2 = new Label("<u>下载报表成EXCEL文件</u>");
		h1.setWidth(150);
		h2.setWidth(150);
		download.setHeight("10%");
		download.setWidth("100%");
		download.addMember(h1);
		download.addMember(h2);
		addItem(topTabSet);
		addItem(download);

	}
}
